package com.example.controller;

import com.example.service.HazelcastService;
import com.hazelcast.cluster.Member;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Set;


/***
 *
 * 测试u集群信息
 */
@RestController
public class TestMemberController {

    @Resource
    private HazelcastService hazelcastService;

    @RequestMapping("getMember")
    public Set<Member> getMember() {
        return hazelcastService.getMember();
    }
}
